package com.javasm.mingming.dynamic.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.List;

import com.javasm.mingming.webuser.entity.WebUserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Dynamics)表实体类
 *
 * @author makejava
 * @since 2025-01-06 17:31:28
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dynamics extends Model<Dynamics> {
    //动态编号
    @TableId(type = IdType.AUTO)
    private Integer id;
    //动态发布时间
    private Date createTime;
    //动态内容
    private String content;
    //点赞数量
    private Integer likenum;
    //用户编号
    private Integer uid;
    //类型 1文字2图片3视频4话题
    private Integer type;
    //发布人的用户信息
    @TableField(exist = false)
    private WebUserInfo userInfo;

    //动态回复列表
    @TableField(exist = false)
    private List<DynamicsReview> reviewList;

}

